package com.indusfo.spc.service;

import com.indusfo.spc.pojo.Batch;
import com.indusfo.spc.pojo.Order;
import com.indusfo.spc.vo.JSONObject;

import java.util.List;

public interface BatchService {

    JSONObject insertBatch(Batch batch, Integer num, Integer planNum);

    JSONObject selectBatch(Batch batch);

    JSONObject delBatch(Long[] batchIds , Long[] productStateIds);

    JSONObject printBatch(Long[] batchIds);

    JSONObject numBatch(Batch batch);

    JSONObject queryOrder(Order order);

    /**
     * 保存工序流程
     */
    JSONObject saveBatchFlow(Batch batch);

    /**
     * 保存维修流程
     */
    JSONObject saveBatchRepair(Batch batch);

    JSONObject queryBatchOrder(Batch batch);

    JSONObject updateOrderDosing(Integer orderId);

    /**
     * 查询excel字段
     * @param batch
     * @return
     */
    String checkExcelContent(Batch batch);

    /**
     * 批量新增
     * @param batchList
     * @return
     */
    JSONObject updateListBatch(List<Batch> batchList);

    /**
     * 检查参数
     * @param batch
     * @return
     */
    String checkParam(Batch batch);

	Integer queryNowFlowId(Integer orderTechId);

    /**
     * 查询所有批次
     * @param batch
     * @return
     */
    JSONObject queryBatchAll(Batch batch);

    JSONObject printBatchCode(String[] batchCodes);
}
